<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 郝龙飞
  Date: 2021/11/1
  Time: 23:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../../pages/common/head.jsp" %>
<html>
<head>
    <title>新注册用户审核页面</title>
    <style>
        body {
            margin: 0;
            padding: 0;
        }

        tr {
            height: 60px;
            text-align: center;
        }

        td {
            color: #ef7a55;
            font-size: 20px;
        }

        #bottom {
            width: 100%;
            height: 80px;
            line-height: 80px;
            text-align: center;
            /* 方法一 */
            position: fixed;
            bottom: 0;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $(":submit").click(function () {
                return confirm("您确定要删除用户id为：" + $(this).parent().parent().children(":eq(0)").text() + "的用户吗")
            })
        })
    </script>
</head>
<body>
<div style="width: 100%;height: 50px;
background-color: #2aabd2;
text-align: center;color: white;font-size: 26px;padding-top: 8px">
    海飞丝洗发护发用品销售系统
</div>
<div style="width: 100%;height: 50px;
background-color: rgba(95,209,232,0.71);padding: 8px;font-size: 20px">
    <a href="javascript:history.back(-1)"><span style="color: #d93535">返回上一页</span></a>
    <span style="color: #242222;font-size: 23px">|</span>
    <a href="index.jsp"><span style="color: #d93535">返回商城首页</span></a>
</div>

<table class="table table-hover" width="70%">
    <tr>
        <td>用户id</td>
        <td>用户姓名</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${sessionScope.allUsers}" var="i">
        <form method="post" action="user/userController?action=deleteUser">
            <tr>
                <td>${i.id}</td>
                <td>${i.name}</td>
                <input type="hidden" name="id" value="${i.id}"/>
                <td><input type="submit" class="btn btn-danger" value="删除违法用户"/></td>
            </tr>
        </form>
    </c:forEach>
</table>


</body>
</html>
